package com.learn.koom;

import android.app.Application;

import com.kwai.koom.base.CommonConfig;
import com.kwai.koom.base.MonitorManager;

public class KoomApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        CommonConfig config = new CommonConfig.Builder()
                .setApplication(this) // Set application
                .setVersionNameInvoker(()-> {
                    return "1.0.0";
                })
                .build();
        MonitorManager.initCommonConfig(config);
    }
}
